package com.aconcagua.samples.charts.state.model {
  import flash.events.EventDispatcher;
  
  import mx.collections.ArrayCollection;

/*  [Event(name="chart_zoom", type="com.aconcagua.samples.charts.state.model.ChartZoomEvent")] */  
  public class Chart extends EventDispatcher {
    /** Collection of com.aconcagua.samples.state.model.Series **/
    private var _series: ArrayCollection;
/*     private var _zoomFrom: Date;
    private var _zoomTo: Date;
 */    
    public function Chart() {
    }
/* 
    [Bindable(event="chart_zoom")]
    public function zoomFrom(): Date {
      return _zoomFrom;
    }    
    
    [Bindable(event="chart_zoom")]
    public function zoomTo(): Date {
      return _zoomTo;
    }
 */
/*     model function zoom(fromDate: Date, toDate: From): void {
      _zoomFrom = fromDate;
      _zoomTo = toDate;
      for each(var series: Series in _series) {
        series.zoom(_zoomFrom, _zoomTo);
      }
      this.dispatchEvent(new ChartZoomEvent(_zoomFrom, _zoomTo));
    }
 */
/*  
    model function addSeries(data: ArrayCollection): void {
      _series.addItem(new Series(this, data));
    }
 */    
  }
}